﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TraSort1.aspx.cs" Inherits="Supervise_TraSort1" %>

<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../styles/css.css" rel="stylesheet" type="text/css">

    <script language="vbscript" type="text/vbscript">
            Sub AreaSelect(byval id)
                Dim strReturnValue
	            strReturnValue = showModalDialog("../System/AreaSelect.aspx?ROOT=" & id,null,"dialogWidth:320px;dialogHeight:480px;status:0;scroll:no;center:yes;help:no;")
	            If Len(strReturnValue) > 0 Then
	                document.all("txtAreaId").value = Split(strReturnValue,vbCrLf)(0)
	                document.all("txtAreaName").value = Split(strReturnValue,vbCrLf)(1)
	            End If
            End Sub
    </script>

    <script language="vbscript" src="../Common/yz.vbs"></script>

    <script language="javascript" src="../common/javascript/calendar.js" type="text/javascript">function Submit1_onclick() {
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="width: 4px">
                        <img src="../images/intro_left.gif" width="4" height="34"></td>
                    <td class="intro_wordbg">
                        按小类查询</td>
                    <td background="../images/intro_bg.gif">
                        <img src="../images/intro_right.jpg" width="118" height="34"></td>
                </tr>
            </table>
            <table id="tabData" width="98%" border="1" align="center" cellpadding="2" cellspacing="1">
                <tr>
                    <td align="right">
                        统计时间：</td>
                    <td>
                        从
                        <asp:TextBox ID="txtStartDate" runat="server" onclick="javascript:fPopCalendar(this,this);"
                            dataType="Date" format="ymd" require="true" DateTimeOnly="开始时间" NotNull='开始时间'
                            msg="日期不存在" Width="93px"></asp:TextBox>
                        到
                        <asp:TextBox ID="txtEndDate" runat="server" onclick="javascript:fPopCalendar(this,this);"
                            dataType="Date" format="ymd" require="true" DateTimeOnly="结束时间" NotNull='结束时间'
                            msg="日期不存在" Width="99px"></asp:TextBox>
                        <br />
                        <span style="color: #ff0033">（请点击输入框点选时间）</span></td>
                    <td align="right">
                        类名称：&nbsp;</td>
                    <td>
                        <asp:DropDownList ID="lstSort" runat="server" Width="271px">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="Label1" runat="server" BorderStyle="None" Text="地区："></asp:Label></td>
                    <td>
                        <asp:Label ID="labArea" runat="server" BorderStyle="None" Text=""></asp:Label>&nbsp;</td>
                    <td align="right">
                        &nbsp;&nbsp; &nbsp;</td>
                    <td>
                        <asp:Button ID="Button6" runat="server" OnClick="Button5_Click" Text="" CssClass="button_Query"
                            OnClientClick="javascript:return CheckForm();" />&nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        采购状态：</td>
                    <td>
                        <asp:DropDownList ID="dealDrop" runat="server" Width="187px">
                            <asp:ListItem Value="0">未确认送货</asp:ListItem>
                            <asp:ListItem Value="1">送货中</asp:ListItem>
                            <asp:ListItem Selected="True" Value="2">已入库</asp:ListItem>
                            <asp:ListItem Value="4">无法配送</asp:ListItem>
                            <asp:ListItem Value="5">到期未送</asp:ListItem>
                        </asp:DropDownList></td>
                    <td align="right">
                    </td>
                    <td>
                    </td>
                </tr>
            </table>
            <asp:GridView ID="GridView1" runat="server" Width="98%" AutoGenerateColumns="False"
                CssClass='table_table' HeaderStyle-CssClass='table_title' >
                <Columns>
                    <asp:BoundField DataField="SortId" HeaderText="小类编码" />
                    <asp:BoundField DataField="sortname" HeaderText="小类名称" />
                    <asp:BoundField DataField="DGJE" HeaderText="订货金额（元）" />
                    <asp:BoundField DataField="DHJE" HeaderText="送货金额（元）" />
                    <asp:BoundField DataField="bidprice" HeaderText="原中标（元）" />
                    <asp:BoundField DataField="bakeprice" HeaderText="自行采购（元）" />
                    <asp:BoundField DataField="Nolimtprice" HeaderText="22种降价（元）" />
                    <asp:BoundField DataField="GMPprice" HeaderText="血液制品（元）" />
                    <asp:BoundField DataField="KeyPrice" HeaderText="重点监控（元）" />
                     <asp:BoundField DataField="DealStatus" HeaderText="采购状态" />
                    <asp:TemplateField HeaderText="医院详细">
                        <ItemTemplate>
                            <a target="_blank" href='TraSortHospital.aspx?SortId=<%# DataBinder.Eval(Container.DataItem, "SortId")%>&EndDate=<%=_strEndDate %>&StartDate=<%=_strStartDate %>&AreaId=<%=_AreaId %>&deal=<%# DataBinder.Eval(Container.DataItem,"DealStatus") %>'>
                                医院详细</a>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <RowStyle CssClass="table_td" />
                <SelectedRowStyle CssClass="table_td" />
            </asp:GridView>
            <br />
            <div align="right">
                <table border="0">
                    <tr>
                        <td>
                            <input type="submit" name="butSelectAll" value="查看全部" class="button_bg6" style="width: 74px"
                                onclick="javascript:return CheckForm();" disabled="disabled"  /></td>
                        <td>
                            <uc1:DbPageFlip ID="DbPageFlip1" runat="server" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</body>
</html>
